{% extends '::base_admin.html.twig' %}
{% block title %}Login{% endblock %}

{% block body %}
{% if error %}
    <div>{{ error.message }}</div>
{% endif %}

<form action="{{ url('login_check') }}" method="post">
    <label for="username">Username:</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" /><br/>

    <label for="password">Password:</label>
    <input type="password" id="password" name="_password" /><br/>
    
    <label for="remember_me">Remember me:</label>
    <input type="checkbox" id="remember_me" name="_remember_me" checked /><br/>

    {#
        If you want to control the URL the user is redirected to on success (more details below)
        <input type="hidden" name="_target_path" value="/account" />
    #}

    <input type="submit" name="login" />
</form>
{% endblock %}